<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
<META name="generator" content="HTML Tidy for Linux/x86 (vers 12 April 2005), see www.w3.org">
<TITLE>Attribute Values</TITLE>
<META name="GENERATOR" content="Modular DocBook HTML Stylesheet Version 1.79">
<LINK rel="HOME" title="Abyss Web Server For Windows User's Guide" href="index.html">
<LINK rel="UP" title="eXtended Server Side Includes" href="ssi.html">
<LINK rel="PREVIOUS" title="XSSI Syntax" href="ssisyntax.html">
<LINK rel="NEXT" title="Directives" href="directives.html">
<LINK rel="STYLESHEET" type="text/css" href="stylesheet.css">
<META name="AppleIcon" content="icon.png">
<META name="AppleTitle" content="Attribute Values">
<META name="Description" content="Attribute Values">
<META name="AppleOrder" content="">
</HEAD>
<BODY class="SECT1" bgcolor="#FFFFFF" text="#000000">
<DIV class="NAVHEADER">
<TABLE summary="Header navigation table" width="100%" border="0" cellpadding="0" cellspacing="0">
<TR>
<TH colspan="3" align="center">Abyss Web Server For Windows User's Guide</TH>
</TR>
<TR>
<TD width="10%" align="left" valign="bottom"><A href="ssisyntax.html" accesskey="P">Prev</A></TD>
<TD width="80%" align="center" valign="bottom">Chapter 7. eXtended Server Side Includes</TD>
<TD width="10%" align="right" valign="bottom"><A href="directives.html" accesskey="N">Next</A></TD>
</TR>
</TABLE>
<HR align="left" width="100%"></DIV>
<DIV class="SECT1">
<H1 class="SECT1"><A name="SSISTREXPANSION" id="SSISTREXPANSION">Attribute Values</A></H1>
<P>If an attribute value is enclosed between single quotes, only character escaping is performed on it.</P>
<P>If an attribute value is enclosed between double quotes, both character escaping and variables expansion are performed on it.</P>
<DIV class="SECT2">
<H2 class="SECT2"><A name="AEN2146" id="AEN2146">Character Escaping</A></H2>
<P>To preserve the literal value of a special character (<KBD class="USERINPUT">\</KBD>, <KBD class="USERINPUT">"</KBD>, <KBD class="USERINPUT">'</KBD>, , <KBD class="USERINPUT">{</KBD>, <KBD class="USERINPUT">}</KBD> or <KBD class="USERINPUT">$</KBD>), precede it with a backslash <KBD class="USERINPUT">\</KBD> character.</P>
</DIV>
<DIV class="SECT2">
<H2 class="SECT2"><A name="AEN2157" id="AEN2157">Variables Expansion</A></H2>
<P>Parts of the attribute value string that are of the form <KBD class="USERINPUT">$VARNAME</KBD> are substituted with the actual value of variable <KBD class="USERINPUT">VARNAME</KBD>. If <KBD class="USERINPUT">VARNAME</KBD> is not declared, it is replaced by an empty string. The variable name must be enclosed between braces as in <KBD class="USERINPUT">${VARNAME}</KBD> if the characters following it may be considered as part of the name.</P>
<DIV class="EXAMPLE"><A name="AEN2164" id="AEN2164"></A>
<P><B>Example 7-1. Variable Expansion Example</B></P>
<P>If variable <KBD class="USERINPUT">DOCUMENT_NAME</KBD> is set to <KBD class="USERINPUT">test.shtml</KBD> and variable <KBD class="USERINPUT">REMOTE_PORT</KBD> is set to <KBD class="USERINPUT">12345</KBD>, then the directive:</P>
<PRE class="PROGRAMLISTING">
   &lt;!-- #set var="Foo" value="${DOCUMENT_NAME}_$REMOTE_PORT" --&gt;
</PRE>
will set the variable <KBD class="USERINPUT">Foo</KBD> to <KBD class="USERINPUT">test.shtml_12345</KBD>.</DIV>
</DIV>
</DIV>
<DIV class="NAVFOOTER">
<HR align="left" width="100%">
<TABLE summary="Footer navigation table" width="100%" border="0" cellpadding="0" cellspacing="0">
<TR>
<TD width="33%" align="left" valign="top"><A href="ssisyntax.html" accesskey="P">Prev</A></TD>
<TD width="34%" align="center" valign="top"><A href="index.html" accesskey="H">Home</A></TD>
<TD width="33%" align="right" valign="top"><A href="directives.html" accesskey="N">Next</A></TD>
</TR>
<TR>
<TD width="33%" align="left" valign="top">XSSI Syntax</TD>
<TD width="34%" align="center" valign="top"><A href="ssi.html" accesskey="U">Up</A></TD>
<TD width="33%" align="right" valign="top">Directives</TD>
</TR>
</TABLE>
</DIV>
<DIV class="COPYRIGHT">Copyright &copy; 2001-2009 Aprelium</DIV>
</BODY>
</HTML>
